<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>动画的基本效果</title>
    <style>
        @keyframes hezi {
            0% {
                left: 0;
                top: 0;
            }
            25% {
                overflow: hidden;
                left: 1000px;
                top: 0px;
                background-color: red;
                transform: rotate(90deg);
                border-radius: 50px;
                transform: scale(1.5);
            }
            50% {
                overflow: hidden;
                left: 1000px;
                top: 500px;
                /* transform: translate(1000px, 500px, 500px); */
                background-color: sandybrown;
                transform: rotate(180deg);
                border-radius: 100px;
                transform: scale(2);
            }
            75% {
                overflow: hidden;
                left: 0px;
                top: 500px;
                background-color: sienna;
                transform: rotate(270deg);
                border-radius: 150px;
                transform: scale(1.5);
            }
            100% {
                overflow: hidden;
                left: 0px;
                top: 0px;
                background-color: springgreen;
                transform: rotate(360deg);
                border-radius: 0px;
                transform: scale(1);
            }
        }
        
        div {
            position: absolute;
            width: 200px;
            height: 200px;
            background-color: palevioletred;
            animation: hezi 5s infinite;
            animation-direction: alternate;
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>